{% autoescape None %}
{% extends "../theme/tmpleaf.html" %}
{% block head %}
<meta name="keywords" content="{{ postinfo.keywords }} ">
<meta name="description" content="{% module generate_abstract(postinfo.cnt_html) %}">
<script>
    var post_uid = "{{ postinfo.uid }}";
    var login = {{ kwd['login'] }};
    $.get('/post_j/count_plus/{{postinfo.uid}}');
</script>

{% end %}
{% block typebody %}

<ol class="breadcrumb">
    <li><a href="/">{{ _('Home') }}</a></li>
    <li><a href="/tutorial/">{{ _('Tutorials') }}</a></li>
    <li>{% module the_category(postinfo.uid, order=True) %}</li>
    <li class="active">{{ _(postinfo.title) }}</li>
</ol>
<div class="panel panel-black">
    <div class="panel-heading">
        <h2>{{ _(postinfo.title) }}</h2>
        <span>{{ datetime.datetime.fromtimestamp(postinfo.time_create).strftime('%Y-%m-%d')  }}</span>

        <span>Browse: {{ postinfo.view_count }} </span>
        <button id="act_collect" class="btn btn-primary btn-xs">
            <span class="glyphicon glyphicon-heart-empty"></span>
            <span id="text_collect">{{ _('Collection') }}</span>
        </button>
        {% module widget_editor('post', postinfo.uid, userinfo) %}
    </div>
    <div class="panel-body">
        <div class="entry">
            <p class="summary"><strong>{{ _('Abstract') }}</strong>: {% module generate_abstract(postinfo.cnt_html) %}
            </p>

            <div class="entrycontent">
                {% raw unescape(postinfo.cnt_html) %}
            </div>
        </div>
        <div class="postmeta">
            <div class="wpyouvote"></div>
            <div class="clear"></div>
            <br>
            <strong>{{ _('Article link') }}:</strong>
            <a href="{% module site_url() %}/post/{{postinfo.uid}}" class="underline"> {{ _(postinfo.title) }}</a>


        </div>
    </div>


    <div class="panel-footer">
        <div class="row">
            <div class="col-sm-6">
                <div class="btn btn-primary">{% module previous_post_link(postinfo.uid) %}</div>
                <div class="btn btn-primary">{% module next_post_link(postinfo.uid) %}</div>
            </div>
            <div class="col-sm-6">
                {% module baidu_share() %}
            </div>
        </div>
    </div>
</div>
{% end %}

{% block right%}
{% module secondary_category_list(catid = catinfo.uid,userinfo = userinfo) %}

{% end %}
